package com.example.player.listener;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.Toast;

import com.example.player.R;
import com.example.player.activity.MainActivity;
import com.example.player.activity.PlayerActivity;

import static androidx.core.content.ContextCompat.startActivity;


public class pagerOnClickListener implements View.OnClickListener {
    Context mContext;
    public pagerOnClickListener(Context mContext){
        this.mContext=mContext;
    }

    @Override
    public void onClick(View v){
        switch(v.getId()){
            case R.id.pager_img1:
                Toast.makeText(mContext,"picture2 clicked",Toast.LENGTH_SHORT).show();
                break;
            case R.id.pager_img2:
                Toast.makeText(mContext,"picture3 clicked",Toast.LENGTH_SHORT).show();
                break;
            case R.id.pager_img3:
                Toast.makeText(mContext,"picture4 clicked",Toast.LENGTH_SHORT).show();
                break;
            case R.id.pager_img4:
                Toast.makeText(mContext,"picture5 clicked",Toast.LENGTH_SHORT).show();
                break;
            case R.id.pager_img5:
                Toast.makeText(mContext,"picture1 clicked",Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
